
<script type="text/javascript">
     /* 禁止引用本页面 */
    if(top.location.host !== "localhost:3000" || !parent.document.getElementById("mainIframe")){
        location.href =  "http://localhost:3000/" ;
    }
     /* 设定iframe高度 */
    parent.document.getElementById("mainIframe").style.height= document.body.scrollHeight+"px";
</script>